package com.sdy.hospitalguard.biz.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzq
 * @since 2020-05-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Regulations extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 规则主键
     */
    @TableId
    private Integer id;

    private String pkey;

    private String pvalue;

    private String description;

    /**
     * 规则类型：0总体，1个人
     */
    private Integer type;

    /**
     * 个人标识,患者/陪护/探视等表的id
     */
    private Integer formId;

    /**
     * 规则状态：0有效，1失效
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date createTime;

}
